package com.oyo.common.enums;

/**
 * 'Confirm Booking': 0,
 * 'Checked In': 1,
 * 'Checked Out': 2,
 * 'Cancelled Booking': 3,
 * 'No Show': 4,
 * 'Owner Booking': 5,
 * 'Blocked': 6,
 * 'Hold': 7,
 * 'Unprocessed': 8,
 * 'Need Manual Intervention': 9,
 * 'Need Manual Overbooking': 10,
 * 'Need Manual Bulk': 11,
 * 'Saved': 12,
 * 'Void Booking': 13
 */
public enum BookingStatus {

    ConfirmBooking("0"), CheckedIn("1"), CheckedOut("2"), CancelledBooking("3"), NoShow("4"),
    OwnerBooking("5"), Blocked("6"), Hold("7"), Unprocessed("8"), NeedManualIntervention("9"),
    NeedManualOverbooking("10"), NeedManualBulk("11"), Saved("12"), VoidBooking("13");

    private String status;

    BookingStatus(String status) {
        this.status = status;
    }

    public Integer getValue() {
        return Integer.parseInt(this.status);
    }

    public static BookingStatus fromString(String status) {
        return BookingStatus.valueOf(status);
    }

}
